package com.heima.music_player;

import java.util.ArrayList;

public class MusicPlayer implements Player {
    private Music music;

    public MusicPlayer(Music music) {
        this.music = music;
    }

    @Override
    public void playMusic() {
        music.play();
    }

    @Override
    public void stopMusic() {
        music.stop();
    }
}
